<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../pccommon.jsp"%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单详情</title>
<link type="text/css" rel="stylesheet" href="${staticPath}/pccss/grzx.css" />
</head>
<body>
	<input type="hidden" id=storageOrderId value="${storageOrder.id}"/>
	<input type="hidden" id=expressCode value="${storageOrder.expressCode}"/>
	<div id="wrapper">
		<c:import url="../layout/header2.jsp"></c:import>
		<div id="main">
			<div id="mainw">
				<c:import url="../layout/leftNav.jsp">
					<c:param name="leftNav" value="buyer" />
				</c:import>
				<div class="mainw_right">
					<div class="mainw_right1">
						<img src="${staticPath}/pcimages/a1.png" />
						<h1>订单详情</h1>
					</div>
					<div class="mainw_right8">
						<ul>
							<li>订单号：${storageOrder.code}</li>
							<li>订单状态：${orderState[storageOrder.state]}</li>
							<li>
								订单金额：￥
								<fmt:formatNumber value="${storageOrder.resultAmount/100}" pattern="#,###.##" />
							</li>
							<li>支付方式：${payChannel[storageOrder.order.payChannel]}</li>
							<li>发货仓库：${storageOrder.storage.name}</li>
							<li>收货人：${storageOrder.order.name}</li>
							<li>联系电话：${storageOrder.order.telephone}</li>
							<li>收货地址：${storageOrder.order.address}</li>
						</ul>
					</div>
					<c:if test="${storageOrder.expressCode!=null&&storageOrder.expressCode!=''}">
					<div class="mainw_right1" style="padding-top: 20px;">
						<img src="${staticPath}/pcimages/a1.png" />
						<h1>物流详情</h1>
					</div>
					<div class="mainw_right8">
						<ul id="expressList">
							<li>发货时间：<fmt:formatDate value="${storageOrder.deliveryTime}" pattern="yyyy-MM-dd HH:mm:ss" /></li>
							<li>物流公司：${storageOrder.express.name}</li>
							<li>运单号码：${storageOrder.expressCode}</li>
						</ul>
					</div>
					</c:if>
					<div class="mainw_right1" style="padding-top: 20px;">
						<img src="${staticPath}/pcimages/a1.png" />
						<h1>商品清单</h1>
					</div>
					<table width="946" border="0" class="table3">
						<tr class="th1">
							<th scope="col" class="td2" style="width: 100px;"><input onclick="changeSelect(1);" type="checkbox" name="all" /></th>
							<th scope="col" class="td2" style="width: 646px;">商品</th>
							<th scope="col" class="td2" style="width: 100px;">单价</th>
							<th scope="col" class="td2" style="width: 100px;">数量</th>
							<th scope="col" style="width: 100px;">小计</th>
						</tr>
						<c:forEach items="${storageOrder.goodsOrder}" var="goodsOrder">
							<tr>
								<td class="td2"><c:if
										test="${goodsOrder.state==30||goodsOrder.state==31||goodsOrder.state==32||goodsOrder.state==40||goodsOrder.state==41}">
										<input type="checkbox" name="one" onclick="changeSelect(2);" value="${goodsOrder.id }"/>
									</c:if></td>
								<td class="td2" style="text-align: left; line-height: 20px;" onclick="gotoHtml('/${goodsOrder.goodsSku.id}.htm')">
								<img src="${goodsOrder.image}" class="tdimg" /> 
								<a style="margin-top: 10px;">${goodsOrder.name}</a>
									<p style="color: #999;">${goodsOrder.goodsSku.specName}</p></td>
								<td class="td2">￥<fmt:formatNumber value="${goodsOrder.price/100}" pattern="#,###.##" /></td>
								<td class="td2">${goodsOrder.num}</td>
								<td class="td2">￥<fmt:formatNumber value="${goodsOrder.totals/100}" pattern="#,###.##" /></td>
							</tr>
						</c:forEach>
					</table>
					<div class="wsmj1" style="background:none;" id="apply">
					   <input type="button" value="申请售后" onclick="apply();"/>
					</div>

				</div>
				<!--mainw_right end-->
			</div>
			<div style="clear: both;"></div>
			<!--main end-->
			<c:import url="../layout/footer.jsp"></c:import>
		</div>
	</div>
	<!--wrapper end-->
</body>

<script type="text/javascript" src="${staticPath}/js/app/order/pcdetail.js"></script>
</html>

